package com.wanxs.mall.auth.feign;


import com.wanxs.mall.auth.vo.LoginVo;
import com.wanxs.mall.auth.vo.SocialUser;
import com.wanxs.mall.auth.vo.UserRegisterVo;
import com.wanxs.mall.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 会员服务
 */
@FeignClient("member-server")
public interface MemberFeginService {
    @PostMapping("/member/member/register")
    public Result register(@RequestBody UserRegisterVo vo);


    @RequestMapping("/member/member/login")
    public Result login(@RequestBody LoginVo vo);

    @RequestMapping("/member/member/oauth2/login")
    public Result socialLogin(@RequestBody SocialUser vo);
}
